﻿using kelianxi.DAL;

namespace kelianxi.BLL
{
    public class UserBLL
    {

        public UserBLL(UserDAL dal)
        {
            Dal = dal;
        }

        public UserDAL Dal { get; }

        /// <summary>
        /// 管理员登录
        /// </summary>
        /// <param name="name">管理员姓名</param>
        /// <param name="pwd">管理员密码</param>
        /// <returns></returns>
        public dynamic Login(string name, string pwd)
        {
            try
            {
                return Dal.Login(name, pwd);

            }
            catch (Exception ex)
            {

                throw ex;
            }
        }



    }
}
